<template>
  <el-breadcrumb class="container-breadcrumb">
    <el-breadcrumb-item>
      <el-icon>
        <TakeawayBox/>
      </el-icon>
    </el-breadcrumb-item>
    <el-breadcrumb-item v-for="item in items" :key="item">
      {{ $t(item) }}
    </el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script lang="ts" setup>
import {PropType} from 'vue';

defineProps({
  items: {
    type: Array as PropType<string[]>,
    default() {
      return [];
    },
  },
});
</script>

<style scoped lang="less">
.container-breadcrumb {
  margin: 16px 0;

  :deep(.arco-breadcrumb-item) {
    color: rgb(var(--gray-6));

    &:last-child {
      color: rgb(var(--gray-8));
    }
  }
}
</style>
